package com.whut.mapper;

import com.whut.model.Newproblemdescription;
import com.whut.model.Problemdescription;
import com.whut.v_model.PrePdName4;
import com.whut.v_vo.equipReportBaseVO.FifthListVO;
import com.whut.v_vo.oldSysLastListVO;

import java.util.List;

public interface NewproblemdescriptionMapper {
    int deleteByPrimaryKey(Integer number);

    int insert(Newproblemdescription record);

    int insertSelective(Newproblemdescription record);

    Newproblemdescription selectByPrimaryKey(Integer number);

    int updateByPrimaryKeySelective(Newproblemdescription record);

    int updateByPrimaryKey(Newproblemdescription record);

    /*my methods*/
    void deleteAll();

    List<Newproblemdescription> getPDBySixthNum(int sixNum);

    List<Newproblemdescription> getLastLevel(int preNum);

    Newproblemdescription getFather(int number);

    String getProblemDescriptionByKey(int number);

    List<PrePdName4> getAllById(List<Integer> list);

    List<Newproblemdescription> getNewPDBySixthNum(int sixNum);

    List<Newproblemdescription> distinceProblemNumBySixthId(Integer sixthId);

    List<Newproblemdescription> findAllByNumber(Integer lastId);

    List<Newproblemdescription> getLastIdByPDText(String text);

    List<Newproblemdescription> getLastListByLastId(Integer lastId);

    List<oldSysLastListVO> getLastListByUpperId(int preNum);

    List<FifthListVO> getAllProblemDesAndOthers(List<Integer> fifthIdList);

    List<Newproblemdescription> findByProblemDescription(String problemDescription,int preNum);
}
